package com.hbx.auth.exception;

import com.hbx.constant.RspEnum;
import lombok.Data;

/*
 * @Author:hbx
 * 
 * */
@Data
public class AuthException extends RuntimeException{

    private Integer code;

    private String msg;

    public AuthException() {
    }

    public AuthException(String message) {
        super(message);
    }

    public AuthException(RspEnum rspEnum){
        super(rspEnum.getMsg());
        this.code = rspEnum.getCode();
        this.msg = rspEnum.getMsg();
    }
}
